package com.mo.lib.http

import com.google.gson.Gson
import com.google.gson.reflect.TypeToken

/**
 * @ author：mo
 * @ data：2022/7/21:10:50
 * @ 功能：
 */
inline fun <reified T> Gson.fromJson1(json: String) = this.fromJson<T>(json, genericType<T>())
inline fun <reified T> genericType() = object: TypeToken< T >() {}.type